package lnkwe.sys.model;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by lijing on 2016-04-13.
 */
public class SysFile {
    private String id;
    private String fileName;
    private String filePath;
    private String uploadFile;
    private String fileType;
    private double fileSize;
    private String url;

    private String modelId;
    private String modelName;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public double getFileSize() {
        return fileSize;
    }

    public void setFileSize(double fileSize) {
        this.fileSize = fileSize;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getUploadFile() {
        return uploadFile;
    }

    public void setUploadFile(String uploadFile) {
        this.uploadFile = uploadFile;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }


    public JSONObject json(){
        JSONObject jsonObject=new JSONObject();
        jsonObject.put("id",id);
        jsonObject.put("file",fileName);
        jsonObject.put("original", fileName);
        jsonObject.put("uploadFile", uploadFile);
        jsonObject.put("size",fileSize);
        jsonObject.put("url",url);
        jsonObject.put("state", "SUCCESS");
        jsonObject.put("type", fileType);
        return jsonObject;
    }

}
